home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(_name ne "boulder" && alive && _root.man0.active)
- {
- currentx = Internal_X + _root.man0.offsetX;
- currenty = Internal_Y + _root.man0.offsetY;
- if(currentx < 600 && -100 < currentx && -100 < currenty && currenty < 400)
- {
- onscreen = true;
- }
- else
- {
- onscreen = false;
- _visible = false;
- }
- if(onscreen)
- {
- _visible = true;
- _X = currentx;
- _Y = currenty;
- }
- if(mover)
- {
- Internal_X += VelX;
- Internal_Y += VelY;
- movercounter++;
- if(200 < movercounter && !moveforwards)
- {
- moveforwards = true;
- movercounter = 0;
- VelX = 4;
- }
- else if(200 < movercounter && moveforwards)
- {
- moveforwards = false;
- movercounter = 0;
- VelX = -4;
- }
- }
- }
- }
-